﻿@model  HomeCareLibrary.Models.MainMenuModel  

<ul>
                                <li>
                                    <a href="@Url.Action("Index", "Home")" class="accordion-toggle collapsed">
                                        <img class="img-responsive" src="@Url.Content("~/images/explore-library.png")">
                                    </a>
                                     <ul>
                                    @foreach (var Mainitem in Model.listCategory)
                                    {   
                                       
                                            <li><a href="#" data-parent="#accordion" data-toggle="collapse" class="accordion-toggle collapsed">
                                                @Mainitem.HomeCare_Category Care
                                            </a>
                                                <ul>
                                                @foreach (var item in Model.listSubCategory)
                                                {
                                                    if (Mainitem.ID == item.CategoryID)
                                                    {
                                                    
                                                        <li> <a class="accordion-toggle collapsed aOverview"  data-name="@item.Feature_Name.Trim().Replace(" ", "-").ToLower()" href="javascript:void(0);">
                                                                @item.Feature_Name
                                                            </a></li>
                                                       
                                                    
                                                    }
                                                }
                                                    </ul>
                                            </li>
                                       
                                    }
                                          </ul>
                                </li>
                            </ul>